<script setup lang="ts">
/* defineProps<{
  money: number
}>()
const emits = defineEmits<{
  (e: 'change', v: number): void
}>() */

defineProps<{
  modelValue: number
  car: string
}>()
const emits = defineEmits<{
  (e: 'update:modelValue', v: number): void
  (e: 'update:car', v: string): void
}>()
</script>
<template>
  <div>
    我是子组件 - {{ modelValue }} -{{ car }}
    <button @click="emits('update:modelValue', 10)">修改</button>
    <button @click="emits('update:car', '小黄车')">换车</button>
    <!-- <button @click="emits('change', 5)">changeMoney</button> -->
  </div>
</template>

<style scoped></style>
